FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD ./target/swagger-ui-1.0.0.RELEASE.jar app.jar
ENV consul_host="127.0.0.1"
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar","--spring.cloud.consul.host=${consul_host}"]